.class public Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;
.super Landroid/widget/ResourceCursorAdapter;
.source "SearchActivity.java"

# interfaces
.implements Lcom/htc/widget/HtcAbsListView$RecyclerListener;
.implements Landroid/widget/SectionIndexer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/SearchActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "ListModeAdapter"
.end annotation


# instance fields
.field private columnIndexDate:I

.field private columnIndexName:I

.field private columnIndexTime:I

.field private firstTime:Z

.field imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

.field private lastSectionString:Ljava/lang/String;

.field private positionIndex:I

.field private sectionIndex2PositionIndex:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private sectionList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/htc/android/footprints/activity/SearchActivity;

.field timeFormatter:Ljava/text/SimpleDateFormat;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/SearchActivity;Landroid/content/Context;ILandroid/database/Cursor;)V
    .locals 2
    .parameter
    .parameter "context"
    .parameter "resource"
    .parameter "cursor"

    .prologue
    .line 441
    iput-object p1, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    .line 442
    invoke-direct {p0, p2, p3, p4}, Landroid/widget/ResourceCursorAdapter;-><init>(Landroid/content/Context;ILandroid/database/Cursor;)V

    .line 429
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    .line 435
    const-string v0, ""

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 436
    const/4 v0, 0x0

    iput v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    .line 437
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    .line 438
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    .line 439
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->firstTime:Z

    .line 443
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "MM/dd/yy"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    .line 444
    const-string v0, "create_time"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexTime:I

    .line 445
    const-string v0, "name"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexName:I

    .line 446
    const-string v0, "short_date"

    invoke-interface {p4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexDate:I

    .line 447
    return-void
.end method

.method static synthetic access$1000(Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;Landroid/database/Cursor;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 426
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->updateSections(Landroid/database/Cursor;)V

    return-void
.end method

.method private updateSections(Landroid/database/Cursor;)V
    .locals 9
    .parameter "cursor"

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 620
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    iget-object v4, v4, Lcom/htc/android/footprints/activity/SearchActivity;->mListView:Lcom/htc/widget/HtcListView;

    invoke-virtual {v4}, Lcom/htc/widget/HtcListView;->setFastScrollSectionsDirty()V

    .line 621
    const-string v4, ""

    iput-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 622
    iput v7, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    .line 623
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->clear()V

    .line 624
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-interface {v4}, Ljava/util/Map;->clear()V

    .line 625
    iput-boolean v8, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->firstTime:Z

    .line 626
    if-eqz p1, :cond_5

    .line 627
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mSortMode:I
    invoke-static {v4}, Lcom/htc/android/footprints/activity/SearchActivity;->access$000(Lcom/htc/android/footprints/activity/SearchActivity;)I

    move-result v4

    if-ne v4, v8, :cond_2

    .line 630
    :goto_0
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->moveToPosition(I)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 631
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexDate:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 632
    .local v3, time:Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 633
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexTime:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    .line 634
    .local v0, epoch:J
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    new-instance v5, Ljava/util/Date;

    invoke-direct {v5, v0, v1}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v4, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    .line 636
    .end local v0           #epoch:J
    :cond_0
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 637
    iput-object v3, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 638
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iget v6, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 639
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 641
    :cond_1
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    goto :goto_0

    .line 645
    .end local v3           #time:Ljava/lang/String;
    :cond_2
    :goto_1
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->moveToPosition(I)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 646
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->columnIndexName:I

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 647
    .local v2, name:Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_3

    .line 648
    iget-boolean v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->firstTime:Z

    if-nez v4, :cond_4

    .line 649
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_3

    .line 650
    invoke-virtual {v2, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 651
    iput-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 652
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    iget-object v5, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    iget v6, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 653
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 663
    :cond_3
    :goto_2
    iget v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->positionIndex:I

    goto :goto_1

    .line 656
    :cond_4
    iput-boolean v7, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->firstTime:Z

    .line 657
    invoke-virtual {v2, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    .line 658
    iput-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->lastSectionString:Ljava/lang/String;

    .line 659
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 660
    iget-object v4, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 667
    .end local v2           #name:Ljava/lang/String;
    :cond_5
    return-void
.end method


# virtual methods
.method public bindView(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V
    .locals 22
    .parameter "view"
    .parameter "context"
    .parameter "cursor"

    .prologue
    .line 462
    invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;

    .line 463
    .local v12, item:Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;
    new-instance v8, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v8}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 464
    .local v8, footprint:Lcom/htc/android/footprints/vo/Footprint;
    move-object v0, v8

    move-object/from16 v1, p3

    invoke-static {v0, v1}, Lcom/htc/android/footprints/provider/FootprintManager;->fillDataFromCursor(Lcom/htc/android/footprints/vo/Footprint;Landroid/database/Cursor;)V

    .line 466
    const/4 v7, 0x0

    .line 467
    .local v7, drawable:Landroid/graphics/drawable/Drawable;
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getWidth()I

    move-result v17

    if-eqz v17, :cond_0

    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getHeight()I

    move-result v17

    if-nez v17, :cond_2

    .line 468
    :cond_0
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v15

    .line 469
    .local v15, lp:Landroid/view/ViewGroup$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    move-object/from16 v18, v0

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;
    invoke-static/range {v18 .. v18}, Lcom/htc/android/footprints/activity/SearchActivity;->access$900(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;

    move-result-object v18

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object v0, v15

    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    move/from16 v20, v0

    move-object v0, v15

    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    move/from16 v21, v0

    invoke-virtual/range {v17 .. v21}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledFastImage(Ljava/lang/String;Ljava/lang/String;II)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    .line 475
    .end local v15           #lp:Landroid/view/ViewGroup$LayoutParams;
    :goto_0
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v7

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 477
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mShortDate:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-static/range {v17 .. v17}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v17

    if-nez v17, :cond_3

    .line 478
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->time:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mShortDate:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 483
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    .line 484
    .local v10, input:Ljava/lang/CharSequence;
    invoke-interface {v10}, Ljava/lang/CharSequence;->length()I

    move-result v14

    .line 485
    .local v14, length:I
    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v11

    .line 487
    .local v11, inputLowerCase:Ljava/lang/String;
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    if-eqz v17, :cond_7

    .line 488
    if-lez v14, :cond_6

    .line 489
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v16

    .line 490
    .local v16, nameLowerCase:Ljava/lang/String;
    new-instance v6, Landroid/text/SpannableString;

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v17, v0

    move-object v0, v6

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 491
    .local v6, displayString:Landroid/text/SpannableString;
    move-object/from16 v0, v16

    move-object v1, v11

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_1

    .line 492
    new-instance v17, Landroid/text/style/ForegroundColorSpan;

    const/16 v18, -0x1

    invoke-direct/range {v17 .. v18}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 494
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const v18, -0x804ee8

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 498
    :cond_1
    const/4 v9, -0x1

    .line 499
    .local v9, index:I
    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, " "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move-object v1, v11

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 500
    .local v13, keyword:Ljava/lang/String;
    :goto_2
    add-int/lit8 v17, v9, 0x1

    move-object/from16 v0, v16

    move-object v1, v13

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v9

    const/16 v17, -0x1

    move v0, v9

    move/from16 v1, v17

    if-le v0, v1, :cond_4

    .line 501
    new-instance v17, Landroid/text/style/ForegroundColorSpan;

    const/16 v18, -0x1

    invoke-direct/range {v17 .. v18}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v9, 0x1

    add-int v19, v14, v9

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 503
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const v18, -0x804ee8

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v9, 0x1

    add-int v19, v14, v9

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    goto :goto_2

    .line 472
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v9           #index:I
    .end local v10           #input:Ljava/lang/CharSequence;
    .end local v11           #inputLowerCase:Ljava/lang/String;
    .end local v13           #keyword:Ljava/lang/String;
    .end local v14           #length:I
    .end local v16           #nameLowerCase:Ljava/lang/String;
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->imageManager:Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    move-object/from16 v18, v0

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCacheTag:Ljava/lang/String;
    invoke-static/range {v18 .. v18}, Lcom/htc/android/footprints/activity/SearchActivity;->access$900(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;

    move-result-object v18

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Landroid/widget/ImageView;->getWidth()I

    move-result v20

    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Landroid/widget/ImageView;->getHeight()I

    move-result v21

    invoke-virtual/range {v17 .. v21}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledFastImage(Ljava/lang/String;Ljava/lang/String;II)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    goto/16 :goto_0

    .line 480
    :cond_3
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->time:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->timeFormatter:Ljava/text/SimpleDateFormat;

    move-object/from16 v18, v0

    new-instance v19, Ljava/util/Date;

    move-object v0, v8

    iget-wide v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    move-wide/from16 v20, v0

    invoke-direct/range {v19 .. v21}, Ljava/util/Date;-><init>(J)V

    invoke-virtual/range {v18 .. v19}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    .line 507
    .restart local v6       #displayString:Landroid/text/SpannableString;
    .restart local v9       #index:I
    .restart local v10       #input:Ljava/lang/CharSequence;
    .restart local v11       #inputLowerCase:Ljava/lang/String;
    .restart local v13       #keyword:Ljava/lang/String;
    .restart local v14       #length:I
    .restart local v16       #nameLowerCase:Ljava/lang/String;
    :cond_4
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->name:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v6

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 515
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v9           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    .end local v16           #nameLowerCase:Ljava/lang/String;
    :goto_3
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    if-eqz v17, :cond_a

    .line 516
    if-lez v14, :cond_9

    .line 517
    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    .line 518
    .local v5, addressLowerCase:Ljava/lang/String;
    new-instance v6, Landroid/text/SpannableString;

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v17, v0

    move-object v0, v6

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 519
    .restart local v6       #displayString:Landroid/text/SpannableString;
    invoke-virtual {v5, v11}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v17

    if-eqz v17, :cond_5

    .line 520
    new-instance v17, Landroid/text/style/ForegroundColorSpan;

    const/16 v18, -0x1

    invoke-direct/range {v17 .. v18}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 522
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const v18, -0x804ee8

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    const/16 v18, 0x0

    const/16 v19, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move v3, v14

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 526
    :cond_5
    const/4 v9, -0x1

    .line 527
    .restart local v9       #index:I
    new-instance v17, Ljava/lang/StringBuilder;

    invoke-direct/range {v17 .. v17}, Ljava/lang/StringBuilder;-><init>()V

    const-string v18, " "

    invoke-virtual/range {v17 .. v18}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    move-object/from16 v0, v17

    move-object v1, v11

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v17

    invoke-virtual/range {v17 .. v17}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 528
    .restart local v13       #keyword:Ljava/lang/String;
    :goto_4
    add-int/lit8 v17, v9, 0x1

    move-object v0, v5

    move-object v1, v13

    move/from16 v2, v17

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I

    move-result v9

    const/16 v17, -0x1

    move v0, v9

    move/from16 v1, v17

    if-le v0, v1, :cond_8

    .line 529
    new-instance v17, Landroid/text/style/ForegroundColorSpan;

    const/16 v18, -0x1

    invoke-direct/range {v17 .. v18}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v9, 0x1

    add-int v19, v14, v9

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 531
    new-instance v17, Landroid/text/style/BackgroundColorSpan;

    const v18, -0x804ee8

    invoke-direct/range {v17 .. v18}, Landroid/text/style/BackgroundColorSpan;-><init>(I)V

    add-int/lit8 v18, v9, 0x1

    add-int v19, v14, v9

    add-int/lit8 v19, v19, 0x1

    const/16 v20, 0x21

    move-object v0, v6

    move-object/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    goto :goto_4

    .line 509
    .end local v5           #addressLowerCase:Ljava/lang/String;
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v9           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    :cond_6
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->name:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 512
    :cond_7
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->name:Landroid/widget/TextView;

    move-object/from16 v17, v0

    const-string v18, ""

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 534
    .restart local v5       #addressLowerCase:Ljava/lang/String;
    .restart local v6       #displayString:Landroid/text/SpannableString;
    .restart local v9       #index:I
    .restart local v13       #keyword:Ljava/lang/String;
    :cond_8
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object v1, v6

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 541
    .end local v5           #addressLowerCase:Ljava/lang/String;
    .end local v6           #displayString:Landroid/text/SpannableString;
    .end local v9           #index:I
    .end local v13           #keyword:Ljava/lang/String;
    :goto_5
    return-void

    .line 536
    :cond_9
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    move-object v0, v8

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_5

    .line 539
    :cond_a
    move-object v0, v12

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->address:Landroid/widget/TextView;

    move-object/from16 v17, v0

    const-string v18, ""

    invoke-virtual/range {v17 .. v18}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_5
.end method

.method public changeCursor(Landroid/database/Cursor;)V
    .locals 2
    .parameter "cursor"

    .prologue
    .line 586
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    invoke-interface {p1}, Landroid/database/Cursor;->getCount()I

    move-result v1

    #calls: Lcom/htc/android/footprints/activity/SearchActivity;->switchView(I)V
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/SearchActivity;->access$700(Lcom/htc/android/footprints/activity/SearchActivity;I)V

    .line 587
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->updateSections(Landroid/database/Cursor;)V

    .line 588
    invoke-super {p0, p1}, Landroid/widget/ResourceCursorAdapter;->changeCursor(Landroid/database/Cursor;)V

    .line 589
    return-void
.end method

.method public getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;
    .locals 3
    .parameter "position"

    .prologue
    .line 592
    invoke-virtual {p0, p1}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/database/Cursor;

    .line 593
    .local v0, cursor:Landroid/database/Cursor;
    if-eqz v0, :cond_0

    .line 594
    new-instance v1, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v1}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 595
    .local v1, footprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1, v0}, Lcom/htc/android/footprints/provider/FootprintManager;->fillDataFromCursor(Lcom/htc/android/footprints/vo/Footprint;Landroid/database/Cursor;)V

    move-object v2, v1

    .line 598
    .end local v1           #footprint:Lcom/htc/android/footprints/vo/Footprint;
    :goto_0
    return-object v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public getFootprints()[Lcom/htc/android/footprints/vo/Footprint;
    .locals 4

    .prologue
    .line 603
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getCount()I

    move-result v0

    .line 604
    .local v0, count:I
    new-array v2, v0, [Lcom/htc/android/footprints/vo/Footprint;

    .line 605
    .local v2, result:[Lcom/htc/android/footprints/vo/Footprint;
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v0, :cond_0

    .line 606
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->getFootprint(I)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    aput-object v3, v2, v1

    .line 605
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 608
    :cond_0
    return-object v2
.end method

.method public getPositionForSection(I)I
    .locals 5
    .parameter "section"

    .prologue
    .line 563
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionIndex2PositionIndex:Ljava/util/Map;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .local v1, positionIndex:I
    move v2, v1

    .line 567
    .end local v1           #positionIndex:I
    :goto_0
    return v2

    .line 565
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 566
    .local v0, e:Ljava/lang/Exception;
    const-string v2, "SearchActivity"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "getPositionForSection() error: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 567
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public getSectionForPosition(I)I
    .locals 1
    .parameter "position"

    .prologue
    .line 572
    const/4 v0, 0x0

    return v0
.end method

.method public getSections()[Ljava/lang/Object;
    .locals 3

    .prologue
    .line 576
    const/4 v0, 0x0

    .line 577
    .local v0, sections:[Ljava/lang/Object;
    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 578
    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->sectionList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->toArray()[Ljava/lang/Object;

    move-result-object v0

    .line 582
    :goto_0
    return-object v0

    .line 580
    :cond_0
    const/4 v1, 0x1

    new-array v0, v1, [Ljava/lang/String;

    .end local v0           #sections:[Ljava/lang/Object;
    const/4 v1, 0x0

    const-string v2, " "

    aput-object v2, v0, v1

    .restart local v0       #sections:[Ljava/lang/Object;
    goto :goto_0
.end method

.method public newView(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter "context"
    .parameter "cursor"
    .parameter "parent"

    .prologue
    .line 545
    invoke-super {p0, p1, p2, p3}, Landroid/widget/ResourceCursorAdapter;->newView(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 546
    .local v1, view:Landroid/view/View;
    new-instance v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;

    invoke-direct {v0}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;-><init>()V

    .line 547
    .local v0, item:Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;
    const v2, 0x7f0c0023

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/ImageView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    .line 548
    const v2, 0x7f0c0024

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->name:Landroid/widget/TextView;

    .line 549
    const v2, 0x7f0c0025

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->address:Landroid/widget/TextView;

    .line 550
    const v2, 0x7f0c0026

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->time:Landroid/widget/TextView;

    .line 551
    invoke-virtual {v1, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 552
    return-object v1
.end method

.method public onMovedToScrapHeap(Landroid/view/View;)V
    .locals 3
    .parameter "view"

    .prologue
    .line 556
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;

    .line 557
    .local v0, item:Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;
    iget-object v1, v0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeItem;->photo:Landroid/widget/ImageView;

    .line 558
    .local v1, photo:Landroid/widget/ImageView;
    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 559
    return-void
.end method

.method public runQueryOnBackgroundThread(Ljava/lang/CharSequence;)Landroid/database/Cursor;
    .locals 4
    .parameter "constraint"

    .prologue
    .line 454
    if-nez p1, :cond_0

    .line 455
    const-string p1, ""

    .line 457
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity;->mFootprintManager:Lcom/htc/android/footprints/provider/FootprintManager;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/SearchActivity;->access$300(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mSortString:Ljava/lang/String;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/SearchActivity;->access$800(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/htc/android/footprints/provider/FootprintManager;->getCursorSortBy(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    return-object v0
.end method

.method public updateSections()V
    .locals 4

    .prologue
    .line 612
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter$1;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter$1;-><init>(Lcom/htc/android/footprints/activity/SearchActivity$ListModeAdapter;)V

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 617
    return-void
.end method
